export default{
    set(key,value){
        localStorage.setItem(key,JSON.stringify(value));
    },
    get(key){
        return JSON.parse(localStorage.getItem(key));
    },
    remove(key){
        localStorage.removeItem(key);
    },
    clear(){
        localStorage.clear();
    },
    isKey(key){
        let rst=localStorage.getItem(key);
        if(rst){
            return true;
        }else{
            return false;
        }
    }} 